POV-Ray : Newsgroups : povray.general : Check if a file is available : Check if a file is available Server Time
1 Aug 2024 08:20:57 EDT (-0400)
  Check if a file is available  
From: Matthias Weißer
Date: 29 Dec 2005 05:30:20
Message: <43b3babc$1@news.povray.org>
Hi

is it possible to check the availability of a file in SDL and then do a 
decision dependiong on the file is available or not. I tried

#fopen f1 "filename" read
#ifdef f1
#warning "file is open"
#end

but that gives me a parse error when "filename" is not available.

-- 

mat### [at] matweide
http://www.matwei.de


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.